import static java.lang.System.out;

public class Test {
	
	public static void main(String args[]) {
		final String BREAKER ="_________________________________";	
		
		ReplaceableTree<Integer> asd = new ReplaceableTree<Integer>();
		
		asd.add(1);
		asd.add(2);
		asd.add(3);
		asd.add(4);
		asd.add(5);
		asd.add(6);
		
		System.out.println(BREAKER);
		
		SortedTree<Student> sTree = new PreorderTree<Student>();
		sTree.add(new Student("Kurt Micheli", 12345));
		sTree.add(new Student("Max Mulatz", 12345));
		sTree.add(new Student("Gabriel Rauter", 12345));
		sTree.add(new Student("Barbara Hofer", 12345));
		sTree.add(new Student("Peter Purgathofer", 12345));
		sTree.add(new Student("Lukas Köll", 12345));
		
		TreeIter<Student> sTreeStudentIter = sTree.iterator();
		while (sTreeStudentIter.hasNext()) {
			System.out.println(sTreeStudentIter.next());
		}
			
		System.out.println(BREAKER);
		
		Iter<Boolean> boolIter = sTree.search(new Student("Lukas Köll", 12345));
		while (boolIter.hasNext()) {
			System.out.println(boolIter.next());
		}
		
	}
	
}
